package com.hnkywl.sts.entity.base;

import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.util.Date;

/**
 * 按天收取
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 13-5-20
 * Time: 下午8:39
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_SYS_ATSQ")
public class Atsq {
    @Id
    @SequenceGenerator(name = "seqAtsq", allocationSize = 1, sequenceName = "SEQ_SYS_ATSQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqAtsq")
    private Long id;
    //付款类型 0 现金 1 承兑
    @ManyToOne
    @JoinColumn(name = "FKLX_SJZDZ_ID")
    @NotFound(action = NotFoundAction.IGNORE)
    private Sjzdz fklx;
    //开始时间
    private Integer startDate;

    //结束时间
    private Integer endDate;

    //利率公式
    private String llgs;


    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "GSPZ_ID")
    private Gspz gspz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Sjzdz getFklx() {
        return fklx;
    }

    public void setFklx(Sjzdz fklx) {
        this.fklx = fklx;
    }

    public Integer getStartDate() {
        return startDate;
    }

    public void setStartDate(Integer startDate) {
        this.startDate = startDate;
    }

    public Integer getEndDate() {
        return endDate;
    }

    public void setEndDate(Integer endDate) {
        this.endDate = endDate;
    }

    public String getLlgs() {
        return llgs;
    }

    public void setLlgs(String llgs) {
        this.llgs = llgs;
    }

    public Gspz getGspz() {
        return gspz;
    }

    public void setGspz(Gspz gspz) {
        this.gspz = gspz;
    }
}
